package com.hkts.management.message.msg.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hkts.management.message.mybaitsplus.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-06-25
 */
@Data
public class MsgRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;
    public static final Integer SYSTEM_ALL=-1;
    public static final Integer SYSTEM_DEALS=0;
    public static final Integer SYSTEM_MSG=1;

    private String id;
    /**
     * 来源用户id
     */
    @ApiModelProperty(value = "消息唯一标识")
    private String messageId;
    /**
     * 来源用户id
     */
    @ApiModelProperty(value = "来源用户id")
    private String fromUserId;
    /**
     * 目标用户id
     */
    @ApiModelProperty(value = "目标用户id")
    private String toUserId;
    /**
     * 消息分类（0：待处理；1：通知消息；）
     */
    @ApiModelProperty(value = "消息分类（0：待处理；1：通知消息；）")
    private String smsType;
    /**
     * 发送方式
     */
    @ApiModelProperty(value = "发送方式")
    private Integer chatType;
    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    private Integer msgType;
    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息内容")
    private String content;
    /**
     * 携带数据
     */
    @ApiModelProperty(value = "携带数据")
    private String extras;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "模板code")
    private String siteCode;
    @ApiModelProperty(value = "是否查看")
    private Integer isRead;
    @ApiModelProperty(value = "订单Id")
    private String orderId;

}
